package com.flume.sample

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View

/**
 *  Created by zxn on 2021/11/9.
 */
class SplashActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_splash)

        findViewById<View>(R.id.btnDemo).setOnClickListener {
            WaveActivity.jumpTo(this)
        }

        findViewById<View>(R.id.btnFlume).setOnClickListener {
            FlumeActivity.jumpTo(this)
        }

        findViewById<View>(R.id.btnWaveViewDemo).setOnClickListener {
            MainActivity.jumpTo(this)
        }

        findViewById<View>(R.id.btnSpoutView).setOnClickListener {
            SpoutActivity.jumpTo(this)
        }

        findViewById<View>(R.id.btnShapeView).setOnClickListener {
            ShapeViewActivity.jumpTo(this)
        }

        FlumeActivity.jumpTo(this)
        //MainActivity.jumpTo(this)
        //SpoutActivity.jumpTo(this)
        //ShapeViewActivity.jumpTo(this)

        //备选方案2
        //https://github.com/AndroidMsky/BitmapWaveView
    }
}